<template>
  <div class="e-table-header-choose">

    <h2 class="title_h2 is20">isShowTopMenu 是否显示顶部的操作栏</h2>
    <p>slotTopLeft插槽可以自定义左边的内容，slotTopRight插槽可以新增自定义右边的内容，</p>

    <h3 class="title_h3">顶部操作栏</h3>
    <div></div>
    <div class="e-vue-demo-block">
      <div class="e-vue-source">
        <evue-table ref="eVue" :data="list" :option="option" @hiddenLabel="hiddenLabel" @fetchRefresh="fetchRefresh">
          <template v-slot:slotTopLeft>
            <div>
              <p>slotTopLeft插槽 主动操作菜单栏</p>
            </div>
            <el-button size="small" @click="isName =!isName">点击{{isName ? '隐藏' : '显示' }}姓名</el-button>
          </template>
        </evue-table>
      </div>
    </div>

  </div>
</template>

<script>
  import Index from './index';

  export default Index;
</script>
<style lang="scss" scoped>
  @import "index";
</style>
